package com.javalei.soso2020.dao;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * User: zzw
 * Date: 2020-01-05-19:48
 * Description: 获取List的数据
 */
@Mapper
@Service
public interface ListDao {
    @Select("select text from todolist")
    List<String> getList();

    @Insert("insert into todolist values(1,#{text})")
    int addList(String text);
}
